import content from '../../../../JSON/tip.json';
import type { dialogData } from '../../../../../../shares/sharesApp';
export const tips: GameEntity[] = world
  .querySelectorAll('*')
  .filter((e) => e.id.startsWith('提示牌'));

tips.forEach((tip: GameEntity) => {
  tip.interactColor = new GameRGBColor(1, 1, 1);
  tip.interactHint = '提示牌 / Tip';
  tip.interactRadius = 5;
  tip.onInteract(({ entity }) => {
    remoteChannel.sendClientEvent(entity, <dialogData>{
      type: 'dialog',
      data: tip.id,
    });
  });
  tip.enableInteract = true;
});
